//
//  SEGAllDoorCollectionViewLayout.h
//  SEGUhomeIntelligentHardware
//
//  Created by Clavis on 2018/10/8.
//  Copyright © 2018 刘山. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol SEGAllDoorCollectionViewLayoutProtocal <NSObject>

@optional
- (void)collectionViewDidBeginDrag;
- (void)collectionViewDidMoveDataItemFromIndexpath:(NSIndexPath *)fromIndexpath toIndexpath:(NSIndexPath *)toIndexPath;
- (void)collectionViewDidEndDragCell:(UICollectionView *)collectionView;

@required
- (NSArray *)collectionViewDataSourceArray:(UICollectionView *)collectionView;
- (void)collectionView:(UICollectionView *)collectionView didDragCellWithNewData:(NSArray *)newDataSource;

@end

@interface SEGAllDoorCollectionViewLayout : UICollectionViewFlowLayout

@property (nonatomic, assign) id<SEGAllDoorCollectionViewLayoutProtocal> delegate;

@end

NS_ASSUME_NONNULL_END
